const dotenv = require('dotenv');
const fs = require('fs');

dotenv.config();

const SERCET_KEY = fs.readFileSync('./src/keys/private.key');
const PUBLIC_KEY = fs.readFileSync('./src/keys/public.key');

console.log(process.env.MYSQL_HOST);

module.exports = {
   APP_HOST,
   APP_PORT,
   MYSQL_HOST,
   MYSQL_PORT,
   MYSQL_DATABASE,
   MYSQL_USER,
   MYSQL_PASSWORD,
} = process.env;

module.exports.SERCET_KEY = SERCET_KEY;
module.exports.PUBLIC_KEY = PUBLIC_KEY;